import { Component, OnInit } from '@angular/core'
import todos from './stores/todos'

@Component({
  selector: 'app-todos',
  templateUrl: './todos.component.html',
  styleUrls: [ './todos.component.scss' ],
})
export class TodosComponent implements OnInit {
  title = ''
  todos = todos

  constructor() {
  }

  ngOnInit() {
  }


  addTodo() {
    this.todos.addTodo({ title: this.title })
    this.title = ''
  }
}
